package com.dotstone.chipism.bean;

import java.util.List;

public class City {
	/**
	 * 城市名称
	 */
	private String name;
	/**
	 * 所包含的辖区集合
	 */
	private List<District> districts;
	
	public City() {
		super();
	}
	private int code;
	private int parentCode;
	private String fullName;
	private int type;
	public City(String name, List<District> districts) {
		super();
		this.name = name;
		this.districts = districts;
	}

	public String getName() {
		return name;
	}

	public City(String name, int code, int parentCode, String fullName, int type) {
		super();
		this.name = name;
		this.code = code;
		this.parentCode = parentCode;
		this.fullName = fullName;
		this.type = type;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public int getParentCode() {
		return parentCode;
	}

	public void setParentCode(int parentCode) {
		this.parentCode = parentCode;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public List<District> getDistricts() {
		return districts;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<District> getDistrictList() {
		return districts;
	}

	public void setDistricts(List<District> districts) {
		this.districts = districts;
	}

	@Override
	public String toString() {
		return "CityModel [name=" + name + ", districtList=" + districts
				+ "]";
	}
	
}
